<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<fmt:setBundle basename="ApplicationMessage" />
<fmt:setLocale value="zh_CN" />

<!DOCTYPE html>
<html lang="zh-CN">
<head>

  <%@ include file="/WEB-INF/include/meta.jsp"%>
  <%@ include file="/WEB-INF/include/css.jsp"%>
</head>
<body>
  <%@ include file="/WEB-INF/include/header.jsp"%>
  <%@ include file="/WEB-INF/include/submenu.jsp"%>

<div class="container-fluid umu-container has-umu-sidemenu">
	<div class="umu-breadcrumb">
      <div class="breadcrumb">个人中心</div>
    </div>
    <div class="panel-default beast-panel beast-panel-layout">
      <div class="panel-body">
        <div class="col-xs-12 beast-panel-layout-right">
    		<div class="ms-content-layout">
				<div class="form-horizontal ms-form form-personal-info">
          			<div class="form-group ms-form-group">
            			<label class="control-label col-xs-2" style="width: 12%;">姓名：</label>
            			<div class="col-xs-2">
              				<p class="form-control-static"><c:out value="${currentAccount.name}"/> </p>
            			</div>
            			<label class="control-label col-xs-2" style="width: 12%;" >邮箱：</label>
            			<div class="col-xs-2">
              			<p class="form-control-static"><c:out value="${currentAccount.email}"/></p>
            			</div>
          			</div>

          			<div class="form-group ms-form-group">
            			<label class="control-label col-xs-2" style="width: 12%;" >密码：</label>
            			<div class="col-xs-2">
              			<p class="form-control-static"><a href="${ctx.host}/accounts/${currentAccount.id}/reset" data-target="#reset" data-toggle="modal" class="btn btn-primary btn-shadow-success btn-shadow umu-btn">修改密码</a>&nbsp;&nbsp;</p>
           				</div>
            			<label class="control-label col-xs-2" style="width: 12%;">&nbsp;</label>
            			<div class="col-xs-2">
              			<p class="form-control-static">&nbsp;</p>
            			</div>
          			</div>
		          	<div class="form-group ms-form-group">
		            	<label class="control-label col-xs-2" style="width: 12%;">用户类型：</label>
		            	<div class="col-xs-2">
		              	<p class="form-control-static">${secure.roles[currentAccount.authority].description}</p>
		           		</div>
		           		<c:if test="${currentAccount.authority=='ROLE_DEPARTMENT_USER' }">
		            	<label class="control-label col-xs-2" style="width: 12%;" >事业部：</label>
		            	<div class="col-xs-2">
		              	<p class="form-control-static"><c:out value="${departmentName}"/></p>
		              	</div>
		              	</c:if>
		            	</div>
		          	</div>
        		</div>       
 			</div>
        </div>
     </div>
  </div>
</div>

  <%@ include file="/WEB-INF/include/footer.jsp"%>
  <%@ include file="/WEB-INF/include/script.jsp"%>
<d:resource root="${ctx.resource}/build" type="script" src="js/page/account/account-list.js" />
<script type="text/javascript">
        require([ 'page/account/account-list' ], function(page) {
            page.init();
        })
    </script>
</body>
</body>
</html>